# name : pandas factorize
# key : factorize.pandas
# key : pd.factorize
# contributor: Shuguang Sun
# --
pd.factorize(${1:['values']}${2:, sort = True})